<?php
    $controller = $this->context;
    $action = $controller->module->requestedAction->id;

?>
<div id="menu" class="l-f l-f-middle t-center">
    <div class="l-f-g1">
        <a href="/home/submit" class="<?=$action == 'submit' ? 'current' : '';?>"><i class="iconfont">&#xf604;</i>提交</a>
    </div>
    <div class="l-f-g1">
        <a href="/home/view" class="<?=$action == 'view' ? 'current' : '';?>"><i class="iconfont">&#xf603;</i>查看</a>
    </div>
    <div class="l-f-g1">
        <a href="/home/info?type=1" class="<?=$action == 'info' ? 'current' : '';?>"><i class="iconfont">&#xf600;</i>供求</a>
    </div>
    <div class="l-f-g1">
        <a href="/home/customer" class="<?=$action == 'customer' ? 'current' : '';?>"><i class="iconfont">&#xf613;</i>商家</a>
    </div>
    <div class="l-f-g1">
        <a href="#" id="shareBtn"><i class="iconfont">&#xf601;</i>分享</a>
    </div>
    <script>
        $('#shareBtn').on('click', function(){
            layer.open({
                type: 1,
                content: $('.jiathis_style_m').html(),
                title: '分享到：'
            });
        });
    </script>
</div>
<div class="jiathis_style_m" style="display: none;"></div>
<div id="btnSpace"></div>

<!-- JiaThis Button BEGIN -->
<script type="text/javascript" src="http://v3.jiathis.com/code/jiathis_m.js" charset="utf-8"></script>
<!-- JiaThis Button END -->